From 4d3c0f347c5f3caffd39d4d30583e912af5455a2 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 18 Jul 2021 20:12:12 +0200 Subject: [PATCH] build: i18n-sync.sh: allow restricting to directory Signed-off-by: Jo-Philipp Wich --- build/i18n-sync.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/i18n-sync.sh b/build/i18n-sync.sh index ad8c46c6ff..ada3f3cb48 100755 --- a/build/i18n-sync.sh +++ b/build/i18n-sync.sh @@ -5,9 +5,9 @@ exit 1 } -./build/mkbasepot.sh +[ -n "$1" ] || ./build/mkbasepot.sh -find . -name '*.pot' -and -not -name base.pot | \ +find "${1:-.}" -name '*.pot' -and -not -name base.pot | \ while read path; do dir="${path%/po/templates/*}" echo -n "Updating ${path#./} ... " @@ -15,4 +15,4 @@ find . -name '*.pot' -and -not -name base.pot | \ echo "done" done -./build/i18n-update.pl +./build/i18n-update.pl "${1:-./*/*/po}" -- 2.30.2